import {get} from "@/components/utils/request";
import {post} from "@/components/utils/request";


// 可以照着这样写请求，页面调用
//请求传递
/**
 * 查询用户的银行卡信息
 * @param id
 * @returns {*}
 */
export const walletfindAll = (id) => {
    return get(`wallet/wallet/walletfindAll/${id}`);
};

/**
 *
 * 逻辑删除银行卡
 * @param id
 * @returns {*}
 */

export const deletewallet = (id) => {
    return get(`wallet/wallet/deletewallet/${id}`);
};



/**
 * 修改用户的银行卡免密状态
 * @param item
 * @returns {*}
 */

export const updatepasswordFreeStatus = (id) => {
    return get(`wallet/wallet/updateFreeStatus/${id}`);
};
/**
 * 修改用户的银行卡优先级状态
 * @param item1
 * @returns {*}
 */

export const precedenceStatus = (id) => {
    return get(`wallet/wallet/precedenceStatus/${id}`);
};
/**
 *
 *开通免密支付接口
 * @param id
 * @returns {*}
 */
export const openSecretfree = (id) => {
    return get(`wallet/wallet/openSecretfree/${id}`);
};


/**
 *
 * 添加新的银行卡
 * @param driversWallet
 * @returns {*}
 */
export const walletadd = (driversWallet) => {
    return post(`wallet/wallet/walletadd`,driversWallet);
};
